using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
namespace Gadgets
{
    public class DeclareLibrary
    {
        #region Live Trade
        public const string MSG_MUTILS = "TRANSACTIONS";
        public const string MSG_MUTIL = "TRANSACTION";
        public const string MSG_MTI = "MTI";
        public const string MSG_TRANSCODE = "TRANSCODE";
        public const string MSG_TRANSSUBCODE = "TRANSSUBCODE";
        public const string MSG_BUSINESSDATE = "BUSINESSDATE";
        public const string MSG_TRANSDATE = "TRANSDATE";
        public const string MSG_TRANSTIME = "TRANSTIME";
        public const string MSG_EXCHANGEID = "EXCHANGEID";
        public const string MSG_SECSYMBOL = "SECSYMBOL";
        public const string MSG_TRANSDESC = "TRANSDESC";
        public const string MSG_TRANSSTATUS = "TRANSSTATUS";
        public const string MSG_EXCHANGESTATUS = "EXCHANGESTATUS";
        public const string MSG_TRANSTYPE = "TRANSTYPE";
        public const string MSG_AMOUNT = "AMOUNT";
        public const string MSG_PRICETYPE = "PRICETYPE";
        public const string MSG_PRICE = "PRICE";
        public const string MSG_FIRM = "FIRM";
        public const string MSG_FIRMBUYER = "FIRMBUYER";
        public const string MSG_TRADEID = "TRADEID";
        public const string MSG_TRADEIDBUYER = "TRADEIDBUYER";
        public const string MSG_BOARD = "BOARD";
        public const string MSG_SRCACCOUNT = "SRCACCOUNT";
        public const string MSG_DSCACCOUNT = "DSCACCOUNT";
        public const string MSG_CLIENTFLAG = "CLIENTFLAG";
        public const string MSG_CANCELFLAG = "CANCELLFLAG";
        public const string MSG_BPVOLBUYER = "BPVOLBUYER";
        public const string MSG_BCVOLBUYER = "BCVOLBUYER";
        public const string MSG_MFVOLBUYER = "MFVOLBUYER";
        public const string MSG_BFVOLBUYER = "BFVOLBUYER";
        public const string MSG_BPVOLSELLER = "BPVOLSELLER";
        public const string MSG_BCVOLSELLER = "BCVOLSELLER";
        public const string MSG_MFVOLSELLER = "MFVOLSELLER";
        public const string MSG_BFVOLSELLER = "BFVOLSELLER";
        public const string MSG_BOORGTRANSNUM = "BOORGTRANSNUM";
        public const string MSG_BOORGSUBTRANSNUM = "BOORGSUBTRANSNUM";
        public const string MSG_ORGTRANSNUM = "ORGTRANSNUM";
        //public const string MSG_ORGSUBTRANSNUM = "ORGSUBTRANSNUM";
        public const string MSG_ORGSUBTRANNUM = "ORGSUBTRANNUM";
        public const string MSG_TRANSNUM = "TRANSNUM";
        public const string MSG_DELETE = "DELETE";
        public const string MSG_LOCALMACHINE = "LOCALMACHINE";
        public const string MSG_LOCALIPADDRESS = "LOCALIPADDRESS";
        public const string MSG_MAKERID = "MAKERID";
        public const string MSG_CHECKERID = "CHECKERID";
        public const string MSG_CHECKSUM = "CHECKSUM";
        public const string MSG_ERRORCODE = "ERRORCODE";
        public const string MSG_EXCHANGEERRORCODE = "EXCHANGEERRORCODE";
        public const string MSG_SECUSERNAME = "SECUSERNAME";
        public const string MSG_SECUSERPASSWORD = "SECUSERPASSWORD";
        #endregion

        #region Securities Company
        public const string FIRM_CODE = "018";
        public const string FORIEGN_ACCOUNT = "F";
        public const string CLIENT_ACCOUNT = "C";        
        public const string MEMBER_ACCOUNT = "P";
        public const string ATO_PRICE = "ATO";
        public const string ATC_PRICE = "ATC";
        public const string LO_PRICE = "LO";
        #endregion

        #region hose transaction
        public const string NORMAL_ORDER = "05000001";
        public const string CHANGE_ORDER = "05000002";
        public const string CANCEL_ORDER = "05000003";
        public const string PUTTHROUGH_1FIRM = "05100001";
        public const string CANCEL_PUTTHROUGH_1FIRM = "05100003";
        public const string PUTTHROUGH_2FIRM = "05200001";
        public const string CANCEL_PUTTHROUGH_2FIRM = "05200003";
        public const string PUTTHROUGH_2FIRM_DEAL = "05200004";
        public const string CANCEL_PUTTHROUGH_2FIRM_DEAL = "05200005";
        public const string ADVERTISEMENT = "05000006";
        #endregion

        #region Global variables
        public static string CURRENCY_FORMAT = "###,###,###,###,##0";
        public static string NUMBER_FORMAT = "###,###,###,##0.###";
        public static string DATE_VALUE_FORMAT = "dd-MMM-yyyy";
        public static string DATE_DISPLAY_FORMAT = "dd/MM/yyyy";

        public static string ROLE = string.Empty;
        public static string USER_NAME = string.Empty;
        public static string PASSWORD = string.Empty;
        public static string SIGN_URL = string.Empty;
        public static string BRANCH_ID = string.Empty;

        public static string PORTFOLIO_ACCOUNT = string.Empty;
        public static string GENERAL_ACCOUNT = string.Empty;
        public static string MEMBER_CODE = string.Empty;
        public static string PCFLAG_DEFAULT = string.Empty;

        public static string COMPANY = string.Empty;
        public static string ADDRESS = string.Empty;
        public static string WEBSITE = string.Empty;
        public static DateTime MARKET_DAY = DateTime.MinValue;
        public static DateTime SETTLE_DATE = DateTime.MaxValue;
        public static double BROKER_RATE = 0;
        public static double ADVANCE_RATE = 0;
        public static string SYSTEM_STATUS = string.Empty;
        public static string TRADING_STATUS = string.Empty;
        public static DateTime SYSTEM_DATE = DateTime.MinValue;
        public static DataSet SYMBOLS = null;
        public static DataSet XML_DATA = null;
        public static Gadgets.BOSCService.Service GADGET_SERVICE = null;
        
        #endregion


    }
}
